package com.abcdefg.handlerdemo.demo5;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
@ResponseBody
public class TestController {
    @RequestMapping("/t1")
    public Integer t1(){
        int a=10/0;
        return a;
    }
    @RequestMapping("/t2")
    public Boolean t2(){
        int[] a={1,2,3};
        System.out.println(a[4]);
        return true;
    }
    @RequestMapping("/t3")
    public String t3(){
        return "t3";
    }
}
